package com.bai.Service;

import com.bai.Pojo.Prisoner;
import com.bai.dto.PageLimitDto;
import com.bai.dto.PublicResponseBody;

import java.util.List;

public interface PrisonerService {

    //添加囚犯
    PublicResponseBody addPrisoner(Prisoner prisoner);

    //修改囚犯信息
    PublicResponseBody UpdatePrisoner(Prisoner prisoner);
    //查询囚犯（多种查询方法）

    //根据囚犯ID删除
    PublicResponseBody deletePrisonerById(Integer id);

    //根据囚犯姓名删除
    int deletePrisonerByName(String priname);

    //根据囚犯ID查询
    PublicResponseBody queryPrisonerById(Integer id);

    //根据囚犯ID查询囚犯简介
    PublicResponseBody queryPrisonerDetailsById(Integer id);

    //根据囚犯姓名查询
    Prisoner queryPrisonerByName(String priname);

    //查询所有
    PageLimitDto QueryAll(String prisex,String partition, String charge,Integer offset, Integer limit);
}
